package grafics;

public class DateValue {
	public Long date;
	public Integer value;
	public DateValue(long date,int value)
	{
		this.date=date;
		this.value=value;
	}
	public String toString()
	{
		return date + " " + value;
	}
	public int getValue()
	{
		return this.value;
	}
	public int getDate()
	{
		return (int)(long)this.date;
	}
	public static long Sum(long array[])
	{
		long sum=0;
		for(int i=0;i<array.length;i++)
			sum+=array[i];
		return sum;
	}


}
